home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
hard
/
hack
/
MMKeyboard.lha
/
MMKeyboard
/
developer
/
example
/
ScreenNextCommand.asm
Wrap
Assembly Source File
|
2002-09-12
|
1KB
|
69 lines
include "src.myinclude"
output t:ScreenNext.Command
;--------------------------------------------------------------------
External_VersionNumber = 0
External_IDData = "EXCO"
External_HeaderData = $70004E75 ;moveq #0,d0 / rts
RSRESET
External_Header rs.l 1
External_Node rs.b (LN_SIZE-4)
External_Name rs.l 1
External_ID rs.l 1
External_Version rs.l 1
External_Code rs.l 1
External_Template rs.l 1
External_Reserved rs.l 1
;--------------------------------------------------------------------
moveq #0,d0
rts
ds.b LN_SIZE-4
dc.l Command_Name
dc.l External_IDData
dc.l External_VersionNumber
dc.l Command_ScreenNext
dc.l 0 ;Command_Template
dc.l 0 ;Reserved
Command_Name dc.b "ScreenNext",0
;Command_Template dc.b "Argument/S",0
T_Intuition dc.b "intuition.library",0
even
;--------------------------------------------------------------------
; >a0.l Pointer on Arguments
;--------------------------------------------------------------------
Command_ScreenNext movem.l d4/a5-a6,-(a7)
lea T_Intuition(pc),a1
moveq #0,d0
move.l 4.w,a6
JSRLIB OpenLibrary
move.l d0,d0
beq .Done
move.l d0,a5
JSRLIB Forbid
exg.l a5,a6
moveq #0,d0
JSRLIB LockIBase
;---
move.l ib_FirstScreen(a6),d4
move.l d0,a0
JSRLIB UnlockIBase
move.l d4,d0
beq .NoScreenToBack
move.l d4,a0
JSRLIB ScreenToBack
.NoScreenToBack exg.l a5,a6
JSRLIB Permit
move.l a5,a1
JSRLIB CloseLibrary
.Done movem.l (a7)+,d4/a5-a6
rts